export const getPosition = (tagDesc: string, groupType?: number) => {
  if(tagDesc?.includes?.('1#')){
    return {
      x: 35,
      y: 40
    };
  }
  if(tagDesc?.includes?.('2#')){
    return {
      x: 44,
      y: 40
    };
  }
  if(tagDesc?.includes?.('3#')){
    return {
      x: 52.5,
      y: 35
    };
  }
  if(tagDesc?.includes?.('4#')){
    return {
      x: 60,
      y: 31
    };
  }
  if(tagDesc?.includes?.('5#')){
    return {
      x: 67.5,
      y: 25
    };
  }
  if(groupType === 13 || groupType === 14){
    return {
      x: 70,
      y: 50
    };
  }
  return {
    x: 30 + Math.random() * 40, // 30%-70%范围内
    y: 30 + Math.random() * 40, // 30%-70%范围内
  };
};

